import { IsString, IsOptional, MaxLength } from 'class-validator';
import { ApiPropertyOptional } from '@nestjs/swagger';

export class UpdateTeamDto {
  @ApiPropertyOptional({
    description: '团队名称',
    example: '产品研发团队（已更新）',
    maxLength: 100,
  })
  @IsOptional()
  @IsString()
  @MaxLength(100, { message: '团队名称不能超过100个字符' })
  name?: string;

  @ApiPropertyOptional({
    description: '团队描述',
    example: '负责产品的研发、测试和维护工作',
  })
  @IsOptional()
  @IsString()
  description?: string;
}
